import {Injectable} from "@angular/core";
import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest} from '@angular/common/http';
import { Observable } from "rxjs";

@Injectable()
export class CustomInterceptor implements HttpInterceptor{
    constructor() {
    }
    intercept(req:HttpRequest<any>,next :HttpHandler):Observable<HttpEvent<any>>{
        return next.handle(req);
    }
}